import request from '@/utils/request'

let baseMapping = "/user_service/";

export function login(nickname, password) {
  return request({
    url: baseMapping + 'login/super',
    method: 'post',
    data: {
      nickname,
      password
    }
  })
}

export function getInfo() {
  return request({
    url: baseMapping + 'info',
    method: 'get'
  })
}

export function logout() {
  return request({
    url: baseMapping + 'logout',
    method: 'get'
  })
}
